<div class="row wrapper white-bg page-heading">
  <div class="container-fluid">
    <h2>管理员管理</h2>
  </div>
  <div class="container-fluid">
    <div class="col-md-1 pull-right" style="text-align: right">
      <button class="btn btn-primary" ng-click="managerListCtrl.managerAdd()"><i class="fa fa-plus-circle"></i> 新增管理员</button>
    </div>
  </div>
  <br/>
  <div class="container-fluid">
    <table class="table table-hover">
      <thead>
      <tr>
        <th>账号</th>
        <th>真实姓名</th>
        <th>联系电话</th>
        <th>状态</th>
        <th>创建时间</th>
        <th>操作</th>
      </tr>
      </thead>
      <tbody>

      <tr ng-repeat="manager in managerListCtrl.managerList">
        <td>{{manager.userName}}</td>
        <td>{{manager.realName}}</td>
        <td>{{manager.connectTel}}</td>
        <td>{{manager.enabledStatus==1?"正常":"注销"}}</td>
        <td>{{manager.createTime}}</td>
        <td>
          <button class="btn btn-info btn-sm" ng-click="managerListCtrl.managerAdd(manager.managerId,manager.userName,manager.realName,manager.connectTel,manager.roleId)">修改</button>
          <button ng-if="" class="btn btn-danger btn-sm" ng-click="managerListCtrl.delete(manager.managerId)">删除</button>
          <button class="btn btn-primary btn-sm" ng-click="managerListCtrl.changeStatus(manager.managerId)">修改状态</button>
          <button class="btn btn-success btn-sm" ng-click="managerListCtrl.changePassword(manager.managerId)">修改密码</button>
        </td>
      </tr>
      </tbody>
    </table>
  </div>

</div>
